<?php $this->_extends('_layouts/index_layout'); ?>

<?php $this->_block('title'); ?> - 主机管理<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started">
	  <h1>主机管理</h1>
	    <table>
		<tr><td>全选</td><td>MAC地址</td><td>状态</td></tr>
		<?php foreach ($manage as $s): ?>
		<tr><td><?php echo $s->id;?></td><td><?php echo $s->macaddress;?></td><td><?php echo $s->infos->osname;?><br>CPU:<?php echo $s->infos->cpuvalue;?><br>内存:<?php echo $s->infos->memvalue;?><br>网卡接收数据:<?php echo $s->infos->intotal;?><br>网卡发送数据:<?php echo $s->infos->outtotal;?></td></tr>
		<tr><td colspan="3">
		<table border="1"><tr><td>登录时间</td><td>登录IP</td><td>登录方式</td><td>登录用户</td></tr>
		<tr><td><?php echo $s->terminals->date.' '.$s->terminals->time;?></td><td><?php echo $s->terminals->loginip; ?></td><td><?php echo $s->terminals->loginname; ?></td><td><?php echo $s->terminals->loginuser; ?></td></tr>
		</table>
		</td></tr>
		<?php endforeach; ?>
		</table>
	</div>

<?php $this->_endblock('contents'); ?>